package MaintMenu.PoAnalysis;

import javax.swing.*;
import java.awt.*;


/**
 * Created with IntelliJ IDEA.
 * User: Jason-i7
 * Date: 1/26/13
 * Time: 9:44 AM
 * To change this template use File | Settings | File Templates.
 * <p/>
 * Java does not have a built-in StatusBar class in Swing. You need to create your own status bar. The following class creates a simple status bar using JLabel. You can improve it based on your needs:
 * <p/>
 * public class StatusBar extends JLabel {
 * <p/>
 * /** Creates a new instance of StatusBar
 * public StatusBar() {
 * super();
 * super.setPreferredSize(new Dimension(100, 16));
 * setMessage("Ready");
 * }
 * <p/>
 * public void setMessage(String message) {
 * setText(" "+message);
 * }
 * }
 * You can use this status bar in your programs as follows:
 * <p/>
 * statusBar = new StatusBar();
 * getContentPane().add(statusBar, java.awt.BorderLayout.SOUTH);
 * Note that we added the status bar at the bottom of the frame using BorderLayout.
 * <p/>
 * You can also change the message on the status bar using setMessage method.
 */
public class StatusBar extends JLabel {
    public StatusBar() {
        super();
        super.setPreferredSize(new Dimension(100, 16));
        setMessage("Ready 123");
    }

    public void setMessage(String message) {
        setText(" " + message);
    }
}
